﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace PM.Services
{
    public class Title
    {
        Title()
        {
            this.TitleName = string.Empty;
        }

        public Title(string title)
        {
            this.TitleName = title;
        }

        public string TitleName { get; set; }
       
    }
    public class TitleCollection : Collection<Title>
    {
        public TitleCollection()
        {
        }
    }

   public class Gender
    {
        Gender()
        {
            this.GenderName = string.Empty;
        }
        public Gender(string gender)
        {
            this.GenderName = gender;
        }
        public string GenderName { get; set; }
    }

    public class GenderCollection : Collection<Gender>
    {
        public GenderCollection()
        {
        }
    }

    public class MartialStatus
    {
        MartialStatus()
        {
            this.MartialStatusName = string.Empty;
        }
        public MartialStatus(string status)
        {
            this.MartialStatusName = status;
        }
        public string MartialStatusName { get; set; }
    }

    public class MartialStatusCollection : Collection<MartialStatus>
    {
        public MartialStatusCollection()
        {
        }
    }

    public static class PersonUtil
    {
        public static TitleCollection GetTitleCollection()
        {
            TitleCollection retVal = new TitleCollection();
            retVal.Add(new Title("Mr."));
            retVal.Add(new Title("Mrs."));
            retVal.Add(new Title("Miss."));
            retVal.Add(new Title("Rev."));
          
            return retVal;
        }

        public static GenderCollection GetGenderCollection()
        {
            GenderCollection retVal = new GenderCollection();
            retVal.Add(new Gender("Male"));
            retVal.Add(new Gender("Female"));            

            return retVal;
        }

        public static MartialStatusCollection GetMartialStatusCollection()
        {
            MartialStatusCollection retVal = new MartialStatusCollection();
            retVal.Add(new MartialStatus("Single"));
            retVal.Add(new MartialStatus("Married"));

            return retVal;
        }


    }
}
